package so.sao.shop.supplier.kingdee.domain;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author gxy on 2017/11/10.
 */
public class RTrade {
    private String tid;
    /**
     * 卖家昵称
     */
    private String seller_nick;

    /**
     * 买家昵称
     */
    private String buyer_nick;

    /**
     * 实付金额
     */
    private BigDecimal payment;

    /**
     * 邮费
     */
    private BigDecimal post_fee;

    /**
     * 收货人姓名
     */
    private String receiver_name;

    /**
     * 收货人所在的省份
     */
    private String receiver_state;

    /**
     * 收货人的详细地址
     */
    private String receiver_address;

    /**
     * 收货人邮编
     */
    private String receiver_zip;

    /**
     * 收货人手机号码
     */
    private String receiver_mobile;

    /**
     * 收货人电话号码
     */
    private String receiver_phone;

    /**
     * 收货人所在城市
     */
    private String receiver_city;

    /**
     * 收货人所在地区
     */
    private String receiver_district;

    /**
     * 交易状态
     * 可选值:
     * TRADE_WAIT_BUYER_PAY 没有付款
     * TRADE_SELLER_SEND_GOODS 已付款
     * TRADE_WAIT_BUYER_CONFIRM_GOODS 已发货
     * TRADE_FINISHED 交易完成
     * TRADE_AUTOMATIC_CLOSED 交易取消
     */
    private String status;

    /**
     * 交易创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date created;

    /**
     * 交易更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date modified;

    /**
     * 付款时间
     */
    private Date pay_time;

    private Orders orders;

    public String getTid() {
        return tid;
    }

    public void setTid(String tid) {
        this.tid = tid;
    }

    public Orders getOrders() {
        return orders;
    }

    public void setOrders(Orders orders) {
        this.orders = orders;
    }

    public String getSeller_nick() {
        return seller_nick;
    }

    public void setSeller_nick(String seller_nick) {
        this.seller_nick = seller_nick;
    }

    public String getBuyer_nick() {
        return buyer_nick;
    }

    public void setBuyer_nick(String buyer_nick) {
        this.buyer_nick = buyer_nick;
    }

    public BigDecimal getPayment() {
        return payment;
    }

    public void setPayment(BigDecimal payment) {
        this.payment = payment;
    }

    public BigDecimal getPost_fee() {
        return post_fee;
    }

    public void setPost_fee(BigDecimal post_fee) {
        this.post_fee = post_fee;
    }

    public String getReceiver_name() {
        return receiver_name;
    }

    public void setReceiver_name(String receiver_name) {
        this.receiver_name = receiver_name;
    }

    public String getReceiver_state() {
        return receiver_state;
    }

    public void setReceiver_state(String receiver_state) {
        this.receiver_state = receiver_state;
    }

    public String getReceiver_address() {
        return receiver_address;
    }

    public void setReceiver_address(String receiver_address) {
        this.receiver_address = receiver_address;
    }

    public String getReceiver_zip() {
        return receiver_zip;
    }

    public void setReceiver_zip(String receiver_zip) {
        this.receiver_zip = receiver_zip;
    }

    public String getReceiver_mobile() {
        return receiver_mobile;
    }

    public void setReceiver_mobile(String receiver_mobile) {
        this.receiver_mobile = receiver_mobile;
    }

    public String getReceiver_phone() {
        return receiver_phone;
    }

    public void setReceiver_phone(String receiver_phone) {
        this.receiver_phone = receiver_phone;
    }

    public String getReceiver_city() {
        return receiver_city;
    }

    public void setReceiver_city(String receiver_city) {
        this.receiver_city = receiver_city;
    }

    public String getReceiver_district() {
        return receiver_district;
    }

    public void setReceiver_district(String receiver_district) {
        this.receiver_district = receiver_district;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public Date getPay_time() {
        return pay_time;
    }

    public void setPay_time(Date pay_time) {
        this.pay_time = pay_time;
    }

    public Date getModified() {
        return modified;
    }

    public void setModified(Date modified) {
        this.modified = modified;
    }
}
